import { request } from "@/utils/request";
enum Api{
	ADD_ORDER="/order/addOrder",
	LIST_ORDER='/order/listOrder',
	LIST_CURRENT_USER_ORDER= '/order/getCurrentUserOrder'
}

export function addOrder(data:any){
	return request({url:Api.ADD_ORDER,data,method:"POST"})
}
export function listOrder(data:any){
	return request({url:Api.LIST_ORDER,data,method:"POST"})
}
export function getCurrentUserOrder(){
	return request({url:Api.LIST_CURRENT_USER_ORDER})
}


